package com.gxa.community.core.pojo.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * @author juran
 * @since 2022-07-19
 */
@Data
@Accessors(chain = true)
@TableName("after_sales")
@ApiModel(value = "AfterSales对象", description = "售后管理")
public class AfterSales implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("申请ID")
    private String no;

    @ApiModelProperty("用户ID")
    private Integer userId;

    @ApiModelProperty("关联订单")
    private String orderNo;

    @ApiModelProperty("问题描述")
    private String tips;

    @ApiModelProperty("售后类型")
    private Integer type;

    @ApiModelProperty("申请售后原因")
    private Integer requestReason;

    @ApiModelProperty("申请退款金额")
    private Double requestRefund;

    @ApiModelProperty("凭证(截图)")
    private String pic;

    @ApiModelProperty("申请时间")
    private Long createTime;

    @ApiModelProperty("审核时间")
    private Long reviewTime;

    @ApiModelProperty("退款时间")
    private Long refundTime;

    @ApiModelProperty("退款金额")
    private Double refund;

    @ApiModelProperty("驳回原因")
    private String rejectReason;

    @ApiModelProperty("售后状态 1待审核(申请中) 2已通过 3已拒绝 0已取消")
    private Integer status;
}
